#ifndef NATIVE_DB_H
#define NATIVE_DB_H
#include "database/rdb/relational_store_error_code.h"
#include "hilog/log.h"
#include "native_db.h"
#include <database/rdb/relational_store.h>
#include <string>
#undef LOG_DOMAIN
#undef LOG_TAG
#define LOG_DOMAIN 0x0000
#define LOG_TAG "NATIVE_db"
// 用户数据模型
struct User {
    int64_t id;
    char name[100];
    int64_t age;
};

OH_Rdb_Store *InitRdbStore(const std::string &sandboxPath, const std::string &bundleName);
bool InsertUser(OH_Rdb_Store *store_, const std::string &name, int age);
bool DeleteUser(OH_Rdb_Store *store_, int64_t id);
std::vector<User> QueryUsers(OH_Rdb_Store *store_);
#endif // NATIVE_DB_H
